package star.cloud.asme.flowable.task;

import jakarta.transaction.Transactional;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.fowable.VO.TaskInstanceQueryCondition;
import star.cloud.asme.base.fowable.VO.TaskInstanceVO;
import star.cloud.asme.base.fowable.baseInterface.FlowableBaseService;
import star.cloud.asme.flowable.task.DTO.CompleteTaskDTO;

import java.util.List;

public interface HqTaskService extends FlowableBaseService<TaskInstanceQueryCondition, TaskInstanceVO> {

    //    @Transactional(rollbackOn = Exception.class)
    Result<?> doTask(CompleteTaskDTO completeTaskDTO);

    Result<List<TaskInstanceVO>> getCommentListByProcessInstanceId(String processInstanceId);

}
